import { IFeidaoAiWeappPage } from '../../../../interfaces';

const FD_EVENTS_WX_USER_CAPTURE_SCREEN = 'fd-events-wx-user-capture-screen';

/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/onUserCaptureScreen.html)
 */
export default function get_screen_brightness(fd: IFeidaoAiWeappPage) {
	const net_status = wx.onUserCaptureScreen(() => {
		fd.emit(FD_EVENTS_WX_USER_CAPTURE_SCREEN);
	});
	return net_status;
}
